package src.main.java.org.oop.enumDemo;
//抽象枚举
public enum B {
    X(){
        @Override
        public void go() {

        }
    },Y("张三"){
        @Override
        public void go() {
            System.out.println();
        }
    };
    public abstract void go();
    private String name;
    B(){

    }
    B(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
